package spring_cloud.demo.eureka_client;

import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

	private final Logger logger = Logger.getLogger(getClass());
	
	@GetMapping("/login")
	public String sso(@RequestParam(defaultValue="Unknow User") String userName,@RequestParam(defaultValue="Unknow Password") String password) {
		logger.info("log in>>>>");
		logger.info("userName:"+userName+" password:"+password);
		return "Login : "+userName;
	}
}
